<?php if(!empty($this->form_login)){?>
<div id="login">
    <h3>Đăng nhập</h3>
    <form action="<?php echo $this->baseUrl('authentication/login') ?>" method="post" enctype="multipart/form-data">
        <div class="input">
            
            <?php echo $this->form_login->username?>
        </div>
        <div class="input">
           
            <?php echo $this->form_login->password?>
        </div>
        <div class="remember">
            <?php echo $this->form_login->remember?> Ghi nhớ
        </div>
        <div class="submit">
            <?php echo $this->form_login->submitlogin?>
        </div>
        <div class="register">
            <p> <a href="">Đăng ký |</a>
            <a href="#" class="forget">Quên mật khẩu?</a></p>
        </div>
    </form>
</div><!--end login-->
<?php } else if(!empty($this->name)){?>
    <div id="logged">
        <div class="image">
            <a href="#"><img src="<?php echo $this->baseUrl('default/images/user/')?>sony-sve-15.jpeg" alt="sony"/></a>
        </div>
        <div class="user">
            <p>Chào bạn: <a href="#" class="username">Lộc</a></p>
            <p><a href="<?php echo $this->baseUrl('authentication/logout')?>" class="logout">Thoát</a></p>
        </div>
    </div><!--end logged-->
<?php }?>